<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <body>
        <ui:composition template="./../../template/main.xhtml">
            <ui:define name="content">
                <h1 class="title ui-widget-header ui-corner-all ">THỐNG KÊ CHI TIỀN MUA HÀNG CŨ</h1>
                <p:growl id="messages"/>

                <p:outputPanel deferred="true">
                    <h:form id="formDataTable">
                        <p:dataTable style="text-align: center" id="colorForm" var="oldReceiptNoteExpenditure" value="#{revenueReportController.oldReceiptNoteExpenditureList}" paginator="true" rows="10" 
                                     paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}" rowsPerPageTemplate="5,10,15"
                                     emptyMessage="Không tìm thấy màu sắc nào..." rendered="#{moduleController.isRendered(moduleController.colorDataTable)}">

                            <p:column headerText="Chi nhánh">
                                <h:outputText value="#{oldReceiptNoteExpenditure.storeName}" />
                            </p:column>

                            <p:column headerText="Ngày">
                                <h:outputText value="#{oldReceiptNoteExpenditure.date}">
                                    <f:convertDateTime pattern="dd/MM/yyyy"/>
                                </h:outputText>
                            </p:column>

                            <p:column headerText="Tổng thu">
                                <h:outputText value="#{oldReceiptNoteExpenditure.totalAmount}">
                                    <f:convertNumber integerOnly="true"/>
                                </h:outputText>
                            </p:column>


                        </p:dataTable>  
                    </h:form>
                </p:outputPanel>
            </ui:define>
        </ui:composition>
    </body>
</html>